package jmine.tec.database.query.columns;

import static java.sql.Types.TIME;
import jmine.tec.database.query.Column;
import jmine.tec.database.query.ColumnFactory;

/**
 * Fábrica de colunas que suportam valores que podem ser representados como Date.
 * 
 * @author lundberg
 */
public class TimeColumnFactory implements ColumnFactory {

    /**
     * {@inheritDoc}
     */
    public Column create(int type, String name) {
        return new TimeColumn(type, name);
    }

    /**
     * {@inheritDoc}
     */
    public int[] getSupportedTypes() {
        return new int[]{ TIME };
    }
}
